﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TienTeTuong
{
    public partial class Top : System.Web.UI.UserControl
    {
        public int orderCounter = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            OrderDTO curOrder = (OrderDTO) Session["Order"];
            if(curOrder == null)
            {
                orderCounter = 0;
            } else
            {
                orderCounter = curOrder.Items.Count;
            }
        }
    }
}